package com.zc.study.thread.多线程第一章节.多线程1_10;

/**
 * 守护线程测试
 */
public class MyThread3 extends Thread{
    private int i =0;
    @Override
    public void run(){
        while (true){
            i++;
            System.out.println(Thread.currentThread().getName()+"::"+i);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
